package git.soulbgm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author 贺瑞杰
 * @version V1.0
 * @date 2019-04-16 11:05
 * @description
 */
@Controller
public class PageController {

    @RequestMapping(path = {"login.html", "/"})
    public ModelAndView skipIndex() {
        ModelAndView view = new ModelAndView();
        view.setViewName("login");
        return view;
    }

    @RequestMapping("index.html")
    public ModelAndView skipTest() {
        ModelAndView view = new ModelAndView();
        view.setViewName("index");
        return view;
    }

}
